package com.qfedu.common.core.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
/**
 * 天气信息实体类
 * @author cc
 */

@Data
@TableName("weather")
@ApiModel(value="天气表", description="天气信息实体")
public class Weather {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value="主键ID")
    private String id;

    @ApiModelProperty(value="日期")
    private String date;  // 修改为String类型，匹配API返回的格式如"2023-01-01"

    @JsonFormat(pattern="HH:mm")
    @ApiModelProperty(value="创建时间")
    private Date createDate;

    @ApiModelProperty(value="星期几")
    private String week;

    @ApiModelProperty(value="白天天气现象")
    private String dayweather;

    @ApiModelProperty(value="晚上天气现象")
    private String nightweather;

    @ApiModelProperty(value="白天温度")
    private String daytemp;

    @ApiModelProperty(value="晚上温度")
    private String nighttemp;

    @ApiModelProperty(value="白天风向")
    private String daywind;

    @ApiModelProperty(value="晚上风向")
    private String nightwind;

    @ApiModelProperty(value="白天风力")
    private String daypower;

    @ApiModelProperty(value="晚上风力")
    private String nightpower;
}